#ifndef				MACRO_HH_
# define			MACRO_HH_

//					Names and Paths

# define 			WIN_NAME   				"Gomoku"
# define			WHITE_STONE_PATH		"images/whiteStone.png"
# define			BLACK_STONE_PATH		"images/blackStone.png"
# define			GOBAN_PATH 				"images/goban.png"
# define			MENU_PATH				"images/menu.png"

//					Values

# define 			WIN_SIZE    			800
# define			INC 	   				26
# define			GOBAN_ORIGIN_COORD		150
# define			GOBAN_END_COORD			650
# define			GOBAN_FIRST_BOX_COORD 	154
# define			GOBAN_LAST_BOX_COORD 	630
# define			GOBAN_FIRST_BOX_NUM		0
# define			GOBAN_LAST_BOX_NUM		360
# define			GOBAN_BOX_PER_LINE		19
# define 			WIN_STATE				31
# define			RIGHT 					0
# define			DIAG_DOWN_RIGHT			1
# define			DIAG_UP_RIGHT 			2
# define			UP 						3
# define 			OWN_COORD				4
# define			DOWN 					5
# define			DIAG_UP_LEFT 			6
# define			DIAG_DOWN_LEFT 			7
# define			LEFT 					8

//					Functions

# define 			CONV_COORD(x)   		((((x) - GOBAN_FIRST_BOX_COORD)) / (INC))
# define			COORD_VALIDITY(x)		(((x) >= GOBAN_ORIGIN_COORD && (x) <= GOBAN_END_COORD) ? true : false)
# define			KEY_VALIDITY(x)			(((x) >= GOBAN_FIRST_BOX_NUM && (x) <= GOBAN_LAST_BOX_NUM) ? true : false) 		
# define 			BOX_NUM(x, y)			((((CONV_COORD(y)) * GOBAN_BOX_PER_LINE)) + (CONV_COORD(x)))

#endif